//
//  MKStatues.m
//  Weibo_OC
//
//  Created by mac on 16/1/16.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "MKStatues.h"
#import "MKStatuesUser.h"


@implementation MKStatues



- (instancetype)initWitchDict:(NSDictionary *)dict {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {}

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqual:@"user"]) {
        
        self.user = [[MKStatuesUser alloc] initWithDict:value];
        return ;
    }
    [super setValue:value forKey:key];
}

- (NSString *)description {
   
   return [NSString stringWithFormat:@"%@===%zd===%@",self.text,self.id,self.source];
   
}

@end
